package arithmetic;

import java.util.Scanner;

/**
 * @program: javaLearn
 * @description: 灰度直方图
 * @author: renhai
 * @Date ：2022/3/8 22:11
 **/
public class Q202104_1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n, m, L;
        n = in.nextInt();
        m = in.nextInt();
        L = in.nextInt();
        int[] H = new int[L];
        int num = 0;
        for (int i = 0; i < m * n; i++) {
            num = in.nextInt();
            if (num >= 0 ) {
                H[num]++;
            }

        }
        for (int i = 0; i < L; i++) {
            System.out.print(H[i] + " ");
        }

    }
}
